/**
 * Created by pc on 2017/11/11.
 */
 //const baseUrl = 'http://new.cbe.com.cn:8080'
 const baseUrl = 'http://47.92.115.193:8081'
export default {
  getcode (phone) { // 1.获取验证码 get phone=
	return baseUrl + '/api/message/sendMessage?phone=' + phone
  },
  login (phone, password, code, sessionId) { // 2.登录注册 GET username code sessionId
	return baseUrl + '/api/user/loginUser?username=' + phone + '&password=' + password + '&code=' + code + '&sessionId=' + sessionId
  },
  getUserInfo () { // 3.获取用户信息 get id
	return baseUrl + '/api/user/getUserInfo'
  },
  uploadImgs () { // 上传图片 post files
	return baseUrl + '/api/user/uploadImgs'
  },
  pushshope () { // 4.发布商铺 post
	return baseUrl + '/api/shops/releaseShops'
  },
  getShopsInfo () { // 获取商铺信息 get shopsId
	return baseUrl + '/api/shops/getShopsInfo'
  },
  getShopsParts () { // 获取商铺配套列表 get
	return baseUrl + '/api/shops/getShopsParts'
  },
  getShopsTypes () { // 获取商铺类型列表 get
	return baseUrl + '/api/shops/getShopsTypes'
  },
  addShopsType () { // 添加商铺类型 post shopsTypeName
	return baseUrl + '/api/shops/addShopsType'
  },
  getAdTypes () { // 7.获取广告类型列表 “shops/getAdTypes” get
	return baseUrl + '/api/shops/getAdTypes'
  },
  getSRTypes () { // 9.获取商铺区域类型列表 “shops/getSRTypes” get
	return baseUrl + '/api/shops/getSRTypes'
  },
  addSRType () { // 10.添加商铺区域类型 “shops/addSRType” post srName (商铺区域类型名称)
	return baseUrl + '/api/shops/addSRType'
  },
  getAdTypeShopss (adType, pnum, fnum) { // 获取某种广告类型商铺列表 /getAdTypeShopss get adType adNum pic fNum font
	return baseUrl + '/api/shops/getAdTypeShopss?adType=' + adType + '&adNum=' + pnum + '&fNum=' + fnum
  },
  searchShops () { // 12.条件查询获取商铺列表shops/searchShops get  page （页数默认1）
	// limit（数量）address（地点）acreage1（面积下限）acreage2（面积上限）rentPrice1（月租价格下限）rentPrice2（月租价格上限）shType（商铺类型）
	return baseUrl + '/api/shops/searchShops'
  },
  getNewOfflineAndSeek () { // 获取最新下线商铺和最新求租商铺列表 get page limit
	return baseUrl + '/api/shops/getNewOfflineAndSeek'
  },
  seekShops () { // 14.求租商铺 “seek/seekShops” post
	return baseUrl + '/api/seek/seekShops'
  },
  getSeekShopsInfo () { // 15.获取求租商铺信息 “seek/getSeekShopsInfo” get seekId
	return baseUrl + '/api/seek/getSeekShopsInfo'
  },
  searchSeeks () { // 16条件查询获取求租列表 get
	return baseUrl + '/api/seek/searchSeeks'
  },
  getUserShops () { // /api/ shops/getUserShops 个人发布列表 get id,page，limit,reType
	return baseUrl + '/api/shops/getUserShops'
  },
  getUserSeeks () {
	return baseUrl + '/api/seek/getUserSeeks'
  },
  updateUser () { // 更新用户信息 get id nick phone facePath
	return baseUrl + '/api/user/updateUsers'
  },
  // getUserInfo () { // 获取用户信息 get id
  //   return baseUrl + '/api/user/getUserInfo'
  // }
  getNewFind () { // get page limit
	return baseUrl + '/api/seek/querySeekSucceedList'
  },
  getNewSeek () {
	return baseUrl + '/api/shops/querySucceedNotice'
  },
  updateShop () {
    return baseUrl + '/api/shops/update'
  }
}
